#pragma once

#include "global.h"

#include <dinput.h>
#pragma comment(lib, "dinput8.lib")
#pragma comment(lib, "dxguid.lib")


struct InputObj
{
	GameArt ga;

	HRESULT hr;
	
	LPDIRECTINPUT8 dObj;
	LPDIRECTINPUTDEVICE8 dIn;

	D3DXVECTOR3 tempValue; // Used for anything... .. ...
};

struct Mouse : public InputObj
{	
	DIMOUSESTATE mouseState;
	POINT p;

	void Init(HWND& hWnd, HINSTANCE& hInst);
	void Update();
	void Render();
	void Release();
};

struct Keyboard : public InputObj
{
	char buffer[256];

	void Init(HWND& hWnd, HINSTANCE& hInst);
	void Update();
	
	void Release();
};